import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import 'vant/lib/index.css';
Vue.use(ElementUI);
// 引入vue-amap
import VueAMap from 'vue-amap'
import vantPlugin from '@/plugins/vantPlugin'

Vue.use(VueAMap)
// 初始化vue-amap
// VueAMap.initAMapApiLoader({
//   // 高德的key
//   key: 'YOUR_KEY',
//   // 插件集合
//   plugin: ['AMap.Autocomplete', 'AMap.PlaceSearch', 'AMap.Scale', 'AMap.OverView', 'AMap.ToolBar', 'AMap.MapType', 'AMap.PolyEditor', 'AMap.CircleEditor','AMap.Scale', 'AMap.OverView', 'AMap.ToolBar', 'AMap.MapType',],
//   // 高德 sdk 版本，默认为 1.4.4
//   v: '1.4.4'
// })
VueAMap.initAMapApiLoader({
  key: '3d57fa9cac383565a5b7e2ff3f2a8b6a',
  plugin: ['AMap.Autocomplete', 'AMap.PlaceSearch', 'AMap.Scale', 'AMap.OverView', 'AMap.ToolBar', 'AMap.MapType',  'AMap.GeoLocation','GeoLocation','AMap.PolyEditor', 'AMap.CircleEditor', 'AMap.Geocoder','AMap.AMapManager','AMap.MouseTool','AMap.DistrictSearch','AMap.Driving'],
  uiVersion: '1.0.11', // 版本号
  v: '1.4.14'
})

Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
